From 86ffa06f018f2f760c6d466c724e792d51375cc4 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Fri, 24 Feb 2012 00:16:33 +0100 Subject: [PATCH] Init the InfoBar message_type to GTK_MESSAGE_OTHER In this way the the code executed when the message_type property is set to its default value (which is 0) gets actually run. --- gtk/gtkinfobar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c index 7972605517..88d6046fce 100644 --- a/gtk/gtkinfobar.c +++ b/gtk/gtkinfobar.c @@ -539,6 +539,11 @@ gtk_info_bar_init (GtkInfoBar *info_bar) info_bar->priv->content_area = content_area; info_bar->priv->action_area = action_area; + /* message-type is a CONSTRUCT property, so we init to a value + * different from its default to trigger its property setter + * during construction */ + info_bar->priv->message_type = GTK_MESSAGE_OTHER; + gtk_widget_pop_composite_child (); gtk_info_bar_style_updated (widget); -- 2.30.2